import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: ()=>import('../views/HomeView.vue'),
    meta: {
      title: '首页'
    }
  },
  {
    path: '/statistics',
    name: 'statistics',
    component: ()=>import('../views/StatisticsView.vue'),
    meta: {
      title: '统计'
    }
  }
]

const router = new VueRouter({
  routes
})

export default router
